<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : timeReportSheet.xsl
    Created on : October 20, 2009, 3:29 PM
    Author     : Owner
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:ns1='http://job.manager/schema/WeekSchedule'>
    <xsl:output method="html"/>

    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <html>
            <head>
                <title>newstylesheet.xsl</title>
                <link rel="stylesheet" href="../css/jobManager.css"/>
            </head>
            <body>
            <xsl:for-each select="ns1:weekList/ns1:week">
            <xsl:for-each select="ns1:day">
            <table class="xslTable">
            <tr>
                <td colspan="3" class="xslDate">
                    <xsl:value-of select="@date"/>
                </td>
            </tr>
            <tr>
                <th>Titel</th>
                <th>Tid</th>
                <th>Kommentar</th>
            </tr>
            <xsl:for-each select="ns1:dayEvent">
            <tr>
                
                <td><xsl:value-of select="@Title"/></td>
                <td><xsl:value-of select="@Time"/></td>
                <td><xsl:value-of select="@Description"/></td>
            </tr>
            </xsl:for-each>
            </table><br/><br/><br/>

            </xsl:for-each>
            </xsl:for-each>
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>
